package stu.sup.entity;

import java.io.Serializable;
import java.util.Date;

public class ClassTable implements Serializable {
    private Integer id;

    private Integer productId;

    private String className;

    private String productBrand;

    private String productPlace;

    private Date productTime;

    private String productWeight;

    private String productSaleway;

    public ClassTable() {
    }

    public ClassTable(Integer id, Integer productId, String className, String productBrand, String productPlace, Date productTime, String productWeight, String productSaleway) {
        this.id = id;
        this.productId = productId;
        this.className = className;
        this.productBrand = productBrand;
        this.productPlace = productPlace;
        this.productTime = productTime;
        this.productWeight = productWeight;
        this.productSaleway = productSaleway;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className == null ? null : className.trim();
    }

    public String getProductBrand() {
        return productBrand;
    }

    public void setProductBrand(String productBrand) {
        this.productBrand = productBrand == null ? null : productBrand.trim();
    }

    public String getProductPlace() {
        return productPlace;
    }

    public void setProductPlace(String productPlace) {
        this.productPlace = productPlace == null ? null : productPlace.trim();
    }

    public Date getProductTime() {
        return productTime;
    }

    public void setProductTime(Date productTime) {
        this.productTime = productTime;
    }

    public String getProductWeight() {
        return productWeight;
    }

    public void setProductWeight(String productWeight) {
        this.productWeight = productWeight == null ? null : productWeight.trim();
    }

    public String getProductSaleway() {
        return productSaleway;
    }

    public void setProductSaleway(String productSaleway) {
        this.productSaleway = productSaleway == null ? null : productSaleway.trim();
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ClassTable{");
        sb.append("id=").append(id);
        sb.append(", productId=").append(productId);
        sb.append(", className='").append(className).append('\'');
        sb.append(", productBrand='").append(productBrand).append('\'');
        sb.append(", productPlace='").append(productPlace).append('\'');
        sb.append(", productTime=").append(productTime);
        sb.append(", productWeight='").append(productWeight).append('\'');
        sb.append(", productSaleway='").append(productSaleway).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
